import { Controller, Post, Headers, Param, Get, Query, Body} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';

@ApiTags("上传")
@Controller('upload')
export class UploadController {
    @Post("novel")
    uploadNovel(
        @Headers("Authorization") auth: string,
        @Query("draft_id") draftID: number,
        @Query("title") title: string,
        @Query("caption") caption: string,
        @Query("cover_id") cover: number,
        @Query("text") text: string,
        @Query("restrict") restrict: string,
        @Query("x_restrict") xrestrict: string,
        @Query("tags") tags: string[],
        @Query("is_original") isOriginal: number,
        @Query("comment_access_control") commentAccessControl: number
    ) {

    }

    @Get("novel/covers")
    uploadCover(@Headers("Authorization") auth: string){

    }
}
